package me.shiqiang.im.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;

import java.util.HashMap;
import java.util.Map;

/**
 * @author cuishiqiang
 * @date 2017/12/8 下午3:37
 */
@RedisHash("users:friends")
public class UserFriends {

    @Id
    private Long userId;

    private Map<Long, Friend> friends;

    public UserFriends() {
        this.friends = new HashMap<>();
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Map<Long, Friend> getFriends() {
        return friends;
    }

    public void setFriends(Map<Long, Friend> friends) {
        this.friends = friends;
    }
}
